#include "common.sqf"

diag_log format ["############################# %1 #############################", missionName];
If (X_Server) Then {
	_time = diag_tickTime;
	diag_log Format ["%1 I'm executed on the server", _time];
	serverInitializedVar = 1234;
	publicVariable "serverInitializedVar";
};
If (X_Client) Then {
	_time = diag_tickTime;
	diag_log Format ["%1 I'm executed on the client", _time];
	If (isNil "serverInitializedVar") then {
		diag_log "The Public variable is not set yet";
	} else {
		diag_log format ["The public variable received %1", serverInitializedVar];
	};
	If (isNil "otherServerInitializedVar") then {
		diag_log "The Other Public variable is not set yet";
	} else {
		diag_log format ["The Other public variable received %1", otherServerInitializedVar];
	};
};

